package com.zzrc.grape.dao.mapper;

import com.zzrc.grape.model.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜单操作
 * @author Maochao-zhu
 *
 */
//@Mapper
public interface MenuDao {
	Integer insertMenu(Menu menu);
	Integer deleteMenuById(String[] ids);
	Integer updateMenuById(Menu menu);
	Menu getMenuById(Integer id);
	List<Menu> getMenuList(Menu menu);
	List<Menu> getMenuListByPid(@Param("pid") Integer pid, @Param("cname") String cname);
	Integer getMenuListCount(Menu menu);

}
